﻿package mortal.common
{
    import com.mui.controls.*;
    import flash.display.*;
    import mortal.game.view.common.alertwins.*;

    public class TodayNotTipUtil extends Object
    {

        public function TodayNotTipUtil()
        {
            return;
        }// end function

        public static function toDayNotTip(param1:String, param2:Function, param3:String = "", param4 = null, param5:uint = 4, param6:Sprite = null, param7:Function = null, param8:Class = null, param9:uint = 4, param10:Class = null, ... args) : void
        {
            args = new activation;
            var tipsType:* = param1;
            var callBack:* = param2;
            var text:* = param3;
            var title:* = param4;
            var flags:* = param5;
            var parent:* = param6;
            var closeHandler:* = param7;
            var iconClass:* = param8;
            var defaultButtonFlag:* = param9;
            var _alertWinRenderer:* = param10;
            var rest:* = args;
            var isNeedAlert:* = !PulseSharedObject.isTodayNotTips();
            if ()
            {
                var innerCloseHandler:* = function (param1:int, param2:Boolean, param3:Object = null) : void
            {
                if (param1 == Alert.OK)
                {
                    if (rest && rest.length > 0)
                    {
                        callBack(rest);
                    }
                    else
                    {
                        callBack();
                    }
                }
                if (param2)
                {
                    PulseSharedObject.save(tipsType, true);
                }
                if (closeHandler != null)
                {
                    closeHandler(param1, param2);
                }
                return;
            }// end function
            ;
                if ( == null)
                {
                    Alert.alertWinRenderer = CheckBoxWin;
                }
                else
                {
                    Alert.alertWinRenderer = ;
                }
                Alert.show(, , , , , , );
            }
            else if ( && length > 0)
            {
                TodayNotTipUtil.();
            }
            else
            {
                TodayNotTipUtil.();
            }
            return;
        }// end function

    }
}
